<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>热门球局原型</title>
    <link rel="stylesheet" href="normalize.css" />
    <style>
      * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
      }

      body {
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei',
          sans-serif;
        background-color: #f1f2f4;
        max-width: 480px;
        height: 100vh;
        margin: 0 auto;
        position: relative;
        color: #333;
      }

      /* 顶部导航栏 */
      .topNav {
        background-color: #ffffff;
        border-bottom: 1px solid #e0e0e0;
        padding: 16px;
        position: sticky;
        top: 0;
        z-index: 100;
      }

      .topNav .header {
        display: flex;
        justify-content: space-between;
        align-items: center;
      }

      .topNav .backButton {
        font-size: 24px;
        color: #333;
        cursor: pointer;
      }

      .topNav .title {
        font-size: 18px;
        font-weight: 600;
        color: #333;
      }


      /* 筛选标签 */
      .filters {
        background-color: #ffffff;
        border-bottom: 1px solid #e0e0e0;
        padding: 12px 16px;
        display: flex;
        gap: 8px;
        overflow-x: auto;
        scrollbar-width: none;
      }

      .filters::-webkit-scrollbar {
        display: none;
      }

      .filters .filterTag {
        display: inline-block;
        background-color: #f5f5f5;
        border: 1px solid #e0e0e0;
        color: #666;
        padding: 6px 12px;
        border-radius: 6px;
        font-size: 13px;
        cursor: pointer;
        white-space: nowrap;
        transition: all 0.3s;
      }

      .filters .filterTag.active {
        background-color: #333;
        color: #ffffff;
        border-color: #333;
      }

      .filters .filterTag:hover {
        border-color: #d0d0d0;
      }

      /* 网格容器 */
      .gridContainer {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        padding: 6px;
      }

      /* 球局卡片 */
      .gameCard {
        background-color: #ffffff;
        border: 1px solid #e0e0e0;
        border-radius: 6px;
        overflow: hidden;
        cursor: pointer;
        transition: all 0.3s;
      }

      .gameCard:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
      }

      .gameCard .thumbnail {
        position: relative;
        width: 100%;
        aspect-ratio: 16 / 9;
        background-color: #e8e8e8;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #999;
        font-size: 12px;
      }

      /* 占位符十字线 */
      .gameCard .thumbnail::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 70%;
        height: 1px;
        background: linear-gradient(to right, transparent, #ccc, transparent);
      }

      .gameCard .thumbnail::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 1px;
        height: 70%;
        background: linear-gradient(to bottom, transparent, #ccc, transparent);
      }

      .placeholderText {
        position: relative;
        z-index: 2;
      }

      /* LIVE 徽章 */
      .gameCard .liveBadge {
        position: absolute;
        top: 8px;
        left: 8px;
        background-color: rgba(0, 0, 0, 0.6);
        color: white;
        padding: 3px 8px;
        border-radius: 3px;
        font-size: 10px;
        font-weight: 500;
        z-index: 10;
      }

      /* 观看人数徽章 */
      .gameCard .viewerCount {
        position: absolute;
        bottom: 8px;
        left: 8px;
        background-color: rgba(0, 0, 0, 0.6);
        color: white;
        padding: 2px 6px;
        border-radius: 3px;
        font-size: 11px;
        z-index: 10;
      }

      /* 报名人数 */
      .gameCard .joinCount {
        position: absolute;
        bottom: 8px;
        right: 8px;
        background-color: rgba(0, 0, 0, 0.6);
        color: white;
        padding: 3px 8px;
        border-radius: 3px;
        font-size: 10px;
        z-index: 10;
      }

      /* 卡片信息区 */
      .gameCard .info {
        padding: 10px 8px;
        background-color: #ffffff;
      }

      .gameCard .gameName {
        font-size: 13px;
        font-weight: 500;
        color: #333;
        margin-bottom: 6px;
        line-height: 1.4;
      }

      .gameCard .meta {
        font-size: 11px;
        color: #999;
        display: flex;
        flex-direction: column;
        gap: 4px;
      }

      .gameCard .location {
        font-size: 11px;
        color: #999;
      }

      /* 空状态 */
      .emptyState {
        padding: 60px 16px;
        text-align: center;
        color: #999;
      }

      .emptyState .placeholder {
        width: 80px;
        height: 80px;
        margin: 0 auto 16px;
        border: 2px solid #e0e0e0;
        border-radius: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #f5f5f5;
        font-size: 12px;
      }

      .emptyState .message {
        font-size: 14px;
        color: #999;
      }

      /* 加载更多提示 */
      .loadMore {
        text-align: center;
        padding: 20px 16px;
        color: #999;
        font-size: 13px;
      }

      
    </style>
  </head>
  <body>
    <!-- 顶部导航栏 -->
    <div class="topNav">
      <div class="header">
        <div class="backButton">&lt;</div>
        <div class="title">热门球局</div>
      </div>
    </div>

    <!-- 球局卡片网格 -->
    <div class="gridContainer">
      <!-- 卡片 1 -->
      <div class="gameCard">
        <div class="thumbnail">
          <span class="placeholderText">直播缩略图</span>
          <div class="liveBadge">LIVE</div>
          <div class="viewerCount">18人观看</div>
        </div>
        <div class="info">
          <div class="gameName">五人制友谊赛</div>
          <div class="meta">
            <span class="location">鲲锐九人制球场</span>
          </div>
        </div>
      </div>

      <!-- 卡片 2 -->
      <div class="gameCard">
        <div class="thumbnail">
          <span class="placeholderText">直播缩略图</span>
          <div class="liveBadge">LIVE</div>
          <div class="viewerCount">25人观看</div>
        </div>
        <div class="info">
          <div class="gameName">晨跑足球局</div>
          <div class="meta">
            <span class="location">奥体1号场馆</span>
          </div>
        </div>
      </div>

      <!-- 卡片 3 -->
      <div class="gameCard">
        <div class="thumbnail">
          <span class="placeholderText">直播缩略图</span>
          <div class="liveBadge">LIVE</div>
          <div class="viewerCount">32人观看</div>
        </div>
        <div class="info">
          <div class="gameName">篮球对抗赛</div>
          <div class="meta">
            <span class="location">国际体育馆</span>
          </div>
        </div>
      </div>

      <!-- 卡片 4 -->
      <div class="gameCard">
        <div class="thumbnail">
          <span class="placeholderText">直播缩略图</span>
          <div class="liveBadge">LIVE</div>
          <div class="viewerCount">15人观看</div>
        </div>
        <div class="info">
          <div class="gameName">羽毛球团队赛</div>
          <div class="meta">
            <span class="location">体育中心1号场</span>
          </div>
        </div>
      </div>

      <!-- 卡片 5 -->
      <div class="gameCard">
        <div class="thumbnail">
          <span class="placeholderText">直播缩略图</span>
          <div class="liveBadge">LIVE</div>
          <div class="viewerCount">28人观看</div>
        </div>
        <div class="info">
          <div class="gameName">城市杯足球联赛</div>
          <div class="meta">
            <span class="location">黄河体育中心</span>
          </div>
        </div>
      </div>

      <!-- 卡片 6 -->
      <div class="gameCard">
        <div class="thumbnail">
          <span class="placeholderText">直播缩略图</span>
          <div class="liveBadge">LIVE</div>
          <div class="viewerCount">22人观看</div>
        </div>
        <div class="info">
          <div class="gameName">夜间足球赛</div>
          <div class="meta">
            <span class="location">城市主场1号场地</span>
          </div>
        </div>
      </div>

      <!-- 卡片 7 -->
      <div class="gameCard">
        <div class="thumbnail">
          <span class="placeholderText">直播缩略图</span>
          <div class="liveBadge">LIVE</div>
          <div class="viewerCount">35人观看</div>
        </div>
        <div class="info">
          <div class="gameName">工商企业杯</div>
          <div class="meta">
            <span class="location">奥体4号场馆</span>
          </div>
        </div>
      </div>

      <!-- 卡片 8 -->
      <div class="gameCard">
        <div class="thumbnail">
          <span class="placeholderText">直播缩略图</span>
          <div class="liveBadge">LIVE</div>
          <div class="viewerCount">19人观看</div>
        </div>
        <div class="info">
          <div class="gameName">业余联赛A组</div>
          <div class="meta">
            <span class="location">城市主场2号场地</span>
          </div>
        </div>
      </div>

      <!-- 卡片 9 -->
      <div class="gameCard">
        <div class="thumbnail">
          <span class="placeholderText">直播缩略图</span>
          <div class="liveBadge">LIVE</div>
          <div class="viewerCount">42人观看</div>
        </div>
        <div class="info">
          <div class="gameName">青年足球赛</div>
          <div class="meta">
            <span class="location">城市主场3号场地</span>
          </div>
        </div>
      </div>

      <!-- 卡片 10 -->
      <div class="gameCard">
        <div class="thumbnail">
          <span class="placeholderText">直播缩略图</span>
          <div class="liveBadge">LIVE</div>
          <div class="viewerCount">12人观看</div>
        </div>
        <div class="info">
          <div class="gameName">大众杯篮球赛</div>
          <div class="meta">
            <span class="location">国际体育馆3号场</span>
          </div>
        </div>
      </div>
    </div>

    <!-- 加载更多提示 -->
    <div class="loadMore">
      <div class="message">更多精彩球局敬请期待</div>
    </div>
  </body>
</html>
